import { RouteRecordRaw } from "vue-router"
import SiteLayout from "@/layout/index.vue"

// 权限管理路由
const settingRoutes: RouteRecordRaw[] = [
    {
        path: '/setting',
        component: SiteLayout,
        meta: {
            title: '设置',
        },
        children: [
            {
                path: 'permission',
                component: () => import('@/views/setting/permissions/index.vue'),
                meta: {
                    title: '权限管理',
                },
                children: [
                    {
                        path: 'admin',
                        component: () => import('@/views/setting/permissions/admin/index.vue'),
                        meta: {
                            title: '管理员',
                        }
                    },
                    {
                        path: 'role',
                        component: () => import('@/views/setting/permissions/role/index.vue'),
                        meta: {
                            title: '角色',
                        }
                    },
                    {
                        path: 'meun',
                        component: () => import('@/views/setting/permissions/meun/index.vue'),
                        meta: {
                            title: '菜单权限',
                        }
                    },
                ]
            },
        ]
    }
]

export default settingRoutes